!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(d){function t(e){var t=e||window.event,i=v.call(arguments,1),n=0,o=0,l=0,s=0,a=0,h=0;if((e=d.event.fix(t)).type="mousewheel","detail"in t&&(l=-1*t.detail),"wheelDelta"in t&&(l=t.wheelDelta),"wheelDeltaY"in t&&(l=t.wheelDeltaY),"wheelDeltaX"in t&&(o=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(o=-1*l,l=0),n=0===l?o:l,"deltaY"in t&&(n=l=-1*t.deltaY),"deltaX"in t&&(o=t.deltaX,0===l&&(n=-1*o)),0!==l||0!==o){if(1===t.deltaMode){var r=d.data(this,"mousewheel-line-height");n*=r,l*=r,o*=r}else if(2===t.deltaMode){var u=d.data(this,"mousewheel-page-height");n*=u,l*=u,o*=u}if(s=Math.max(Math.abs(l),Math.abs(o)),(!w||s